Skip to content

use portable shebang (#!/usr/bin/env bash) for cross-platform compatibility#46

Open
aymericderbois wants to merge 1 commit into
warpdotdev:mainfrom
aymericderbois:aymeric/use-portable-shebang
Open

use portable shebang (#!/usr/bin/env bash) for cross-platform compatibility#46
aymericderbois wants to merge 1 commit into
warpdotdev:mainfrom
aymericderbois:aymeric/use-portable-shebang

Conversation

@aymericderbois
Copy link
Copy Markdown

All 14 shell scripts use #!/bin/bash as their shebang, which assumes bash is located at /bin/bash. This path doesn't exist on at least NixOS.

Replaced all shebangs with #!/usr/bin/env bash, which resolves bash via $PATH. This is the recommended portable approach for shell scripts.

Changes

  • Updated shebang from #!/bin/bash to #!/usr/bin/env bash in all 14 scripts under plugins/warp/

No functional changes — only the interpreter lookup method is affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant